/**
 * Created by luqidong on 2017/8/10.
 */
export function isphone(value) {
    var reg = /^1[0-9]{10}$/;
    return reg.test(value);
}
export function isiOS(u) {
    //noinspection JSDuplicatedDeclaration
    var u = u || window.navigator.userAgent;
    return !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
}
export function getAppname(appcode) {
    switch (parseInt(appcode)) {
        case 1:
            return '日日中彩票';
        case 2:
            return '懂彩帝';
        case 3:
            return '彩民彩票';
        case 4:
            return '六合彩';
        case 5:
            return '福利彩票';
        case 6:
            return '彩票开奖';
        case 7:
            return '同城彩票';
        case 8:
            return '彩票预测';
        default:
            return '彩民彩票';
    }
}
export const delay = timeout => {
    return new Promise(resolve => {
        setTimeout(resolve, timeout);
    });
};

// export const USER_URI = '//user.cp.lovedou.com'; //user接口域名
// export const BASE_URI = '//base.cp.lovedou.com'; //base接口域名
// export const HD_URI = '//hd.cp.lovedou.com';     //hd接口域名
// export const NEWS_URI = '//news.cp.lovedou.com'; //news接口域名
// export const SHOP_URI = '//shop.cdlm.lovedou.com'; //shop接口域名
// export const PLAN_URI = '//plan.cp.lovedou.com'; //plan接口域名
// export const MASTER_URI = '//master.cp.lovedou.com'; //master接口域名
// export const DATA_URI = '//data.cp.lovedou.com';//data接口域名
// export const RES_URI = '//res.cp.lovedou.com';//res接口域名
export const USER_URI = '/user'; //user接口域名
export const BASE_URI = '/base'; //base接口域名
export const HD_URI = '/hd';  //hd接口域名
export const NEWS_URI = '/news'; //news接口域名
export const SHOP_URI = '/shop'; //shop接口域名
export const PLAN_URI = '/plan'; //plan接口域名
export const MASTER_URI = '/master'; //master接口域名
export const DATA_URI = '/data';//data接口域名
export const RES_URI = '/res';//res接口域名
